package gui;

import java.awt.Container;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JFrame;

/**
 *
 * @author Ragnar
 */


public class WindowPanel
{
    public static void main(String[] args)
    {
        ImagePanel ip = new ImagePanel();
        ProcessedImagePanel pip = new ProcessedImagePanel(ip);
        pip.setBounds(0, 310, 400, 300);
        JFrame f = new JFrame();
        f.setLayout(null);
        Container c = f.getContentPane();
        ip.setBounds(0,0,400,300);
        c.add(ip);
        c.add(pip);
        JButton btn = new JButton("Test");
        btn.setBounds(410, 50, 100, 20);
        c.add(btn);
        
        f.setMinimumSize(new Dimension(900, 800));
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
    }
}
